VIVE 3DSP Native C Library  ver 1.0.0.0
Audio 3DSP (3D Sound Perception) Native C Library
doppler_source.h
Go to the documentation of this file.
1 //========= Copyright 2016-2018, HTC Corporation. All rights reserved. ===========
2 #pragma once
3 #include "audio_engine.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8  namespace HTC_Vive3DSP_SDK {
14  typedef struct vive_3dsp_internal_doppler_source vive_3dsp_dopplersource;
26  vive_3dsp_dopplersource_create_object(vive_3dsp_context *api, VIVE_3DSP_CHANNELTYPE type, int sampleRate);
37  vive_3dsp_dopplersource_destroy_object(vive_3dsp_context *api, vive_3dsp_dopplersource *src);
50  vive_3dsp_dopplersource_set_buffer(vive_3dsp_context *api, vive_3dsp_dopplersource *src, float *data, unsigned int size);
62  vive_3dsp_dopplersource_set_position(vive_3dsp_context *api, vive_3dsp_dopplersource *src, VIVE_3DSP_Vector3 pos);
74  vive_3dsp_dopplersource_set_order(vive_3dsp_context *api, vive_3dsp_dopplersource *src, int order);
87  vive_3dsp_dopplersource_process(vive_3dsp_context *api, vive_3dsp_dopplersource *src, float *out_buffer, int sampleLength);
88  }
89 #ifdef __cplusplus
90 }
91 #endif
Definition: audio_engine.h:144
VIVE_3DSP_API_STATUS
Definition: audio_engine.h:25
#define VIVE_3DSP_API_DLLEXPORT
Definition: audio_engine.h:6
The vive_3dsp_dopplersource structure represents the doppler effect of a moving audio source...
VIVE_3DSP_CHANNELTYPE
Definition: audio_engine.h:42
The vive_3dsp_context structure represents the overall audio engine of 3D sound model.
Definition: vive_3dsp_api.h:15